<template>
  <div class="child">
        <h2>我是 Child 组件</h2>
        <h3>当前求和为: {{ sum }}</h3>
    </div>
</template>

<script setup lang="ts" name="Child">
import axios from 'axios';
import { ref } from 'vue';

let sum = ref(0)

let xxx = await axios.get('https://api.uomg.com/api/rand.img1?sort=美女&format=json')
console.log(xxx);

</script>

<style>
.child {
    background-color: sandybrown;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px;
}
</style>